<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>人和人律师事务所管理系统v1.0-个人信息查看</title>

<style type="text/css" media="all">
    .allow-float {clear:none!important;} /* 允许该元素浮动 */
    .stop-float {clear:both!important;} /* 阻止该元素浮动 */
	.float-left {float:left;padding-left:40px}   /*浮动到左边*/
  </style>
		<script type="text/javascript">
		var win;
		var userId=<%=session.getAttribute("userId")%>;
		var roles=<%=session.getAttribute("role")%>;
		var desturl='PersonalInfoScan.jsj?userId='+userId+'&role='+roles;
	Ext.onReady(function(){
	var personInfoWindow = new Ext.form.FormPanel({
			title:'个人详细信息查看',
			labelSeparator :'：',//分隔符
			labelWidth : 120,//标签宽度
			bodyStyle:'padding:5',//表单边距
			frame : true,
			collapsible: true,
			height:300,
			width:window.screen.width-380,
			applyTo :'personInfoWin',
			defaultType:"textfield",
			defaults:{
			width:180
			},
			<%
			if((Integer)session.getAttribute("role")==1){
			%>

			  reader: new Ext.data.JsonReader({root:'result'},
                                       [
                                       {name: 'lawyername',mapping:'lawyername',type:'string'},
                                       {name: 'birthtime',mapping:'birthtime',type:'string'},
                                       {name: 'lawyersex',mapping:'lawyersex',type:'string'},
                                       {name: 'politicalstatus',mapping:'politicalstatus',type:'string'},
                                       {name: 'businesyear',mapping:'businesyear',type:'string'},
                                       {name: 'businessnumber',mapping:'businessnumber',type:'string'},
                                       {name: 'honestarchives',mapping:'honestarchives',type:'string'},
                                       {name: 'lawyerphone',mapping:'lawyerphone',type:'string'},
                                       {name: 'educationallevel',mapping:'educationallevel',type:'string'},
                                       {name: 'identitynumber',mapping:'identitynumber',type:'string'},
                                       {name: 'annsurreginfo',mapping:'annsurreginfo',type:'string'},
                                       {name: 'positionname',mapping:'positionname',type:'string'},
                                       {name: 'graduateschool',mapping:'graduateschool',type:'string'},
                                       {name: 'lawyeremail',mapping:'lawyeremail',type:'string'},
                                       {name: 'lawyercometime',mapping:'lawyercometime',type:'string'},
                                       {name: 'lawyerleavetime',mapping:'lawyerleavetime',type:'string'},
                                       {name: 'lawyerachriveinfo',mapping:'lawyerachriveinfo',type:'string'},
                                       {name: 'householdaddr',mapping:'householdaddr',type:'string'},
                                       {name: 'achriveaddr',mapping:'achriveaddr',type:'string'},
                                       {name: 'eligiblenumber',mapping:'eligiblenumber',type:'string'}
                                      ]),


			items:[
				{fieldLabel:"律师姓名",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyername"},

				{fieldLabel:"出生年月",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"birthtime"},

				{fieldLabel:"性别",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyersex"},

				{fieldLabel:"政治面貌",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"politicalstatus"},

					{fieldLabel:"执业年限",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"businesyear"},

					{fieldLabel:"执业证号",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"businessnumber"},

					{fieldLabel:"诚信档案",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"honestarchives"},

					{fieldLabel:"联系方式",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyerphone"},

					{fieldLabel:"文化程度",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"educationallevel"},

					{fieldLabel:"身份证号",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"identitynumber"},

					{fieldLabel:"年检注册",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"annsurreginfo"},

					{fieldLabel:"职位名",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"positionname"},

					{fieldLabel:"毕业院校",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"graduateschool"},

					{fieldLabel:"邮箱",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyeremail"},

					{fieldLabel:"入所时间",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyercometime"},
					{fieldLabel:"离所时间",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyerleavetime"},
					{fieldLabel:"异动情况",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"lawyerachriveinfo"},
					{fieldLabel:"户籍所在地",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"householdaddr"},
					{fieldLabel:"档案所在地",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"achriveaddr"},
					{fieldLabel:"资格证号",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"eligiblenumber"}
			]
					<%
	}
			%>

			<%
			if((Integer)session.getAttribute("role")==3){
			%>

 reader: new Ext.data.JsonReader({root:'result'},
                                       [
                                       {name: 'adminpersonname',mapping:'adminpersonname',type:'string'},
                                       {name: 'birthtime',mapping:'birthtime',type:'string'},
                                       {name: 'adminpersonsex',mapping:'adminpersonsex',type:'string'},
                                       {name: 'politicalstatus',mapping:'politicalstatus',type:'string'},
                                       {name: 'educationallevel',mapping:'educationallevel',type:'string'},
                                       {name: 'graduateschool',mapping:'graduateschool',type:'string'},
                                       {name: 'adminpersonphone',mapping:'adminpersonphone',type:'string'},
                                       {name: 'pracagreement',mapping:'pracagreement',type:'string'},
                                       {name: 'identitynumber',mapping:'identitynumber',type:'string'},
                                       {name: 'adminpersonemail',mapping:'adminpersonemail',type:'string'},
                                       {name: 'adminpersonposition',mapping:'adminpersonposition',type:'string'}
                                      ]),


			items:[
				{fieldLabel:"行政人员姓名",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"adminpersonname"},

				{fieldLabel:"出生年月",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"birthtime"},

				{fieldLabel:"性别",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"adminpersonsex"},

				{fieldLabel:"政治面貌",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"politicalstatus"},

					{fieldLabel:"文化水平",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"educationallevel"},

					{fieldLabel:"毕业院校",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"graduateschool"},

					{fieldLabel:"联系方式",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"adminpersonphone"},

					{fieldLabel:"聘用合同",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"pracagreement"},

					{fieldLabel:"身份证号",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"identitynumber"},

					{fieldLabel:"邮箱",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"adminpersonemail"},

					{fieldLabel:"职位",
					itemCls:'float-left',//向左浮动
					clearCls:'allow-float',//允许浮动
					 readOnly:true,
					name:"adminpersonposition"},
			]


							<%
	}
			%>

		});

		personInfoWindow.getForm().load({
        url:desturl,
       waitMsg : '正在载入数据...',
        });
	});
</script>
</head>
<body>
	<div id="personInfoWin"></div>
</body>
</html>